package com.miao.config;

import com.miao.entity.Babby;
import com.miao.entity.Boy;

import com.miao.entity.Cat;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;


@Configuration
@Import( {Babby.class,  Boy.class })
@ComponentScan("com.miao.ForScan")
public class JavaConfig2 {

    @Bean
    Cat cat(){
        return new Cat();
    }


}
